package com.clip.entity;

import com.clip.util.ToolsUtils;

public class UserEmailEvent implements java.io.Serializable {

	private static final long serialVersionUID = 6936317838983214747L;

	private Integer id;
	private Integer uid; // 用户
	private String code; // 链接代码
	private String obj; // 参数
	private String obj1; // 参数
	private Integer type; // 类型　1.找回密码　2.绑定邮箱　3.好友请求　4.激活账户　5.申请注册
	private Long actDate; // 时间
	private Integer click = 0; // 点击次数
	private Integer status = 0; // 状态　 0.可用　1.不可用

	public UserEmailEvent() {
	}
	/**
	 * @param uid
	 * @param type 1.找回密码　2.绑定邮箱　3.好友请求　4.激活账户　5.申请注册
	 * @param actDate
	 */
	public UserEmailEvent(Integer uid,Integer type,Long actDate) {
		this.uid = uid;
		this.code = ToolsUtils.getUUID();
		this.type = type;
		this.actDate = actDate;
	}
	/**
	 * @param uid
	 * @param obj
	 * @param obj1
	 * @param type 1.找回密码　2.绑定邮箱　3.好友请求　4.激活账户　5.申请注册
	 * @param actDate
	 */
	public UserEmailEvent(Integer uid,String obj,String obj1,Integer type,Long actDate) {
		this.uid = uid;
		this.code = ToolsUtils.getUUID();
		this.type = type;
		this.obj = obj;
		this.obj1 = obj1;
		this.actDate = actDate;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getObj() {
		return obj;
	}

	public void setObj(String obj) {
		this.obj = obj;
	}

	/**
	 * @return 1.找回密码　2.绑定邮箱　3.好友请求　4.激活账户　5.申请注册
	 */
	public Integer getType() {
		return type;
	}

	/**
	 * @param type 1.找回密码　2.绑定邮箱　3.好友请求　4.激活账户　5.申请注册
	 */
	public void setType(Integer type) {
		this.type = type;
	}

	public Long getActDate() {
		return actDate;
	}

	public void setActDate(Long actDate) {
		this.actDate = actDate;
	}

	public Integer getClick() {
		return click;
	}

	public void setClick(Integer click) {
		this.click = click;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getObj1() {
		return obj1;
	}

	public void setObj1(String obj1) {
		this.obj1 = obj1;
	}
}
